﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SES.CMS.BL;
using SES.CMS.DO;

namespace SES.CMS
{
    public partial class ytba : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ltrFooter.Text = new sysConfigBL().Select(new sysConfigDO { ConfigID = 11 }).ConfigValue;
                Page.Title = new sysConfigBL().Select(new sysConfigDO { ConfigID = 1 }).ConfigValue.ToString();
            }
        }

        protected void imgbtnSearch_Click(object sender, EventArgs e)
        {
            string sp = "";
            if(rdSanPham.Checked)
                sp = "sp";
            if(rdTinTuc.Checked)
                sp = "tt";
            if (!txtSearch.Text.Equals(""))
            {
                Response.Redirect("/Search-" + sp + "/" + txtSearch.Text.Trim() + "/default.aspx" );
            }
        }
    }
}